//
//  AppDelegate.m
//  OC--新浪微博
//
//  Created by Apple on 15/11/8.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import "AppDelegate.h"
#import "AppDelegate+IsVersion.h"
#import "MainNaVViewController.h"
@interface AppDelegate ()
@property (nonatomic, assign) BOOL isVersion;
@property (nonatomic, strong) UIViewController *defaultViewController;
@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    //主窗口
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController = self.defaultViewController;
    //打印返回的结果一定要在返回控制器之后，否则会在判断返回控制器之前进行一次判断
    //NSLog(@"%d",self.isVersion);
    [self setupAPPearance];
    //通知
    [self notification];
    [self.window makeKeyAndVisible];
    return YES;
}

@end
